package com.sxt.springcloud.sys;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sxt.springcloud.sys.fallback.NoticeClientFallbackService;
import com.sxt.sys.common.DataGridView;
import com.sxt.sys.common.ResultObj;
import com.sxt.sys.domain.Loginfo;
import com.sxt.sys.domain.Notice;
import com.sxt.sys.vo.NoticeVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(value = "SPRINGCLOUD-PROVIDER-SYS",fallbackFactory = NoticeClientFallbackService.class)
@RequestMapping("/p/notice")
public interface NoticeClientService {


    /**
     * 查询
     */
    @RequestMapping("loadAllNotice")
    DataGridView loadAllNotice(@RequestBody NoticeVo noticeVo);


    /**
     * 添加
     */
    @RequestMapping("addNotice")
    ResultObj addNotice(@RequestBody NoticeVo noticeVo);
    /**
     * 修改
     */
    @RequestMapping("updateNotice")
    ResultObj updateNotice(@RequestBody NoticeVo noticeVo);

    /**
     * 删除
     */
    @RequestMapping("deleteNotice")
    ResultObj deleteNotice(@RequestParam("id") Integer id);


    /**
     * 批量删除
     */
    @RequestMapping("batchDeleteNotice")
    ResultObj batchDeleteNotice(@RequestBody NoticeVo noticeVo);
}
